<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common :: header"/>
<body style="background-color: #fff">
    <style>
        .dm-form{padding-top: 20px; padding-left: 100px;}
        .dm-form tr{height: 50px;}
        .dm-form input{width: 440px}
        .dm-label{width: 80px;padding-right: 15px;text-align: right}
    </style>
    <form id="form_notice" class="dm-form" method="post" action='/system/notice/add'>
        <table>
            <tr>
                <td class="dm-label">标题：</td>
                <td class="dm-content">
                    <input class="easyui-textbox" name="noticeTitle">
                </td>
            </tr>
            <tr>
                <td class="dm-label">类型：</td>
                <td class="dm-content">
                    <input id="noticeType" name="noticeType">
                </td>
            </tr>
            <tr style="height: 200px">
                <td class="dm-label">内容：</td>
                <td class="dm-content">
                    <input class="easyui-textbox" type="text" name="noticeContent" data-options="multiline:true,height:'180px'">
                    <!--<div id="wangEditor"></div>-->
                </td>
            </tr>
            <tr>
                <td class="dm-label">状态：</td>
                <td class="dm-content">
                    <input class="status" name="status" data-options="label:'正常'" value="0" checked>
                    <input class="status" name="status" data-options="label:'关闭'" value="1">
                </td>
            </tr>
        </table>
    </form>
<script type="text/javascript">
    $(function() {
        $('.status').radiobox({})

        $('#noticeType').combobox({
            url: '/system/dict/getDictData?type=sys_notice_type',
            panelHeight: 'auto',
            required: true,
            editable: false
        });
    });

    function submitHandler(index) {
        dm.save('form_notice', function() {
            parent.layer.close(index);
            parent.dm.search('table', 'search_form');
        })
    }
</script>
</body>
</html>
